import { int, xy, xyz, rgb, rgba } from "./util";

export class orderId {
	static arr: Array<orderId> = new Array<orderId>();

	static fromString(orderIdString: string): orderId {
		return this.byId(OrderId(orderIdString) as int);
	}
	private constructor(id: int) {
		this.id = id;

		this.name = OrderId2String(this.id);
		orderId.arr[id - 850000] = this;
	}
	static byId(id: int) {
		if (id - 850000 < 0) {
			throw new Error("unknown orderId: " + id);
		}

		let ret = orderId.arr[id - 850000];

		if (ret == undefined) {
			throw new Error("unknown orderId: " + id);
		}

		return ret;
	}

	id: int;
	name: string;

	static issuedorderId(): orderId {
		return orderId.byId(GetIssuedOrderId() as int);
	}

	toString(orderId: int): string {
		return OrderId2String(orderId);
	}

	static ABSORB = new orderId(852529 as int);
	static ACIDBOMB = new orderId(852662 as int);
	static ACOLYTEHARVEST = new orderId(852185 as int);
	static AMBUSH = new orderId(852131 as int);
	static ANCESTRALSPIRIT = new orderId(852490 as int);
	static ANCESTRALSPIRITTARGET = new orderId(852491 as int);
	static ANIMATEDEAD = new orderId(852217 as int);
	static ANTIMAGICSHELL = new orderId(852186 as int);
	static ATTACK = new orderId(851983 as int);
	static ATTACKGROUND = new orderId(851984 as int);
	static ATTACKONCE = new orderId(851985 as int);
	static ATTRIBUTEMODSKILL = new orderId(852576 as int);
	static AURAUNHOLY = new orderId(852215 as int);
	static AURAVAMPIRIC = new orderId(852216 as int);
	static AUTODISPEL = new orderId(852132 as int);
	static AUTODISPELOFF = new orderId(852134 as int);
	static AUTODISPELON = new orderId(852133 as int);
	static AUTOENTANGLE = new orderId(852505 as int);
	static AUTOENTANGLEINSTANT = new orderId(852506 as int);
	static AUTOHARVESTGOLD = new orderId(852021 as int);
	static AUTOHARVESTLUMBER = new orderId(852022 as int);
	static AVATAR = new orderId(852086 as int);
	static AVENGERFORM = new orderId(852531 as int);
	static AWAKEN = new orderId(852466 as int);
	static BANISH = new orderId(852486 as int);
	static BARKSKIN = new orderId(852135 as int);
	static BARKSKINOFF = new orderId(852137 as int);
	static BARKSKINON = new orderId(852136 as int);
	static BATTLEROAR = new orderId(852599 as int);
	static BATTLESTATIONS = new orderId(852099 as int);
	static BEARFORM = new orderId(852138 as int);
	static BERSERK = new orderId(852100 as int);
	static BLACKARROW = new orderId(852577 as int);
	static BLACKARROWOFF = new orderId(852579 as int);
	static BLACKARROWON = new orderId(852578 as int);
	static BLIGHT = new orderId(852187 as int);
	static BLINK = new orderId(852525 as int);
	static BLIZZARD = new orderId(852089 as int);
	static BLOODLUST = new orderId(852101 as int);
	static BLOODLUSTOFF = new orderId(852103 as int);
	static BLOODLUSTON = new orderId(852102 as int);
	static BOARD = new orderId(852043 as int);
	static BREATHOFFIRE = new orderId(852580 as int);
	static BREATHOFFROST = new orderId(852560 as int);
	static BUILD = new orderId(851994 as int);
	static BURROW = new orderId(852533 as int);
	static CANNIBALIZE = new orderId(852188 as int);
	static CARRIONSCARABS = new orderId(852551 as int);
	static CARRIONSCARABSINSTANT = new orderId(852554 as int);
	static CARRIONSCARABSOFF = new orderId(852553 as int);
	static CARRIONSCARABSON = new orderId(852552 as int);
	static CARRIONSWARM = new orderId(852218 as int);
	static CHAINLIGHTNING = new orderId(852119 as int);
	static CHANNEL = new orderId(852600 as int);
	static CHARM = new orderId(852581 as int);
	static CHEMICALRAGE = new orderId(852663 as int);
	static CLOUDOFFOG = new orderId(852473 as int);
	static CLUSTERROCKETS = new orderId(852652 as int);
	static COLDARROWS = new orderId(852244 as int);
	static COLDARROWSTARG = new orderId(852243 as int);
	static CONTROLMAGIC = new orderId(852474 as int);
	static CORPOREALFORM = new orderId(852493 as int);
	static CORROSIVEBREATH = new orderId(852140 as int);
	static COUPLEINSTANT = new orderId(852508 as int);
	static COUPLETARGET = new orderId(852507 as int);
	static CREEPANIMATEDEAD = new orderId(852246 as int);
	static CREEPDEVOUR = new orderId(852247 as int);
	static CREEPHEAL = new orderId(852248 as int);
	static CREEPHEALOFF = new orderId(852250 as int);
	static CREEPHEALON = new orderId(852249 as int);
	static CREEPTHUNDERBOLT = new orderId(852252 as int);
	static CREEPTHUNDERCLAP = new orderId(852253 as int);
	static CRIPPLE = new orderId(852189 as int);
	static CURSE = new orderId(852190 as int);
	static CURSEOFF = new orderId(852192 as int);
	static CURSEON = new orderId(852191 as int);
	static CYCLONE = new orderId(852144 as int);
	static DARKCONVERSION = new orderId(852228 as int);
	static DARKPORTAL = new orderId(852229 as int);
	static DARKRITUAL = new orderId(852219 as int);
	static DARKSUMMONING = new orderId(852220 as int);
	static DEATHANDDECAY = new orderId(852221 as int);
	static DEATHCOIL = new orderId(852222 as int);
	static DEATHPACT = new orderId(852223 as int);
	static DECOUPLE = new orderId(852509 as int);
	static DEFEND = new orderId(852055 as int);
	static DETECTAOE = new orderId(852015 as int);
	static DETONATE = new orderId(852145 as int);
	static DEVOUR = new orderId(852104 as int);
	static DEVOURMAGIC = new orderId(852536 as int);
	static DISASSOCIATE = new orderId(852240 as int);
	static DISENCHANT = new orderId(852495 as int);
	static DISMOUNT = new orderId(852470 as int);
	static DISPEL = new orderId(852057 as int);
	static DIVINESHIELD = new orderId(852090 as int);
	static DOOM = new orderId(852583 as int);
	static DRAIN = new orderId(852487 as int);
	static DREADLORDINFERNO = new orderId(852224 as int);
	static DROPITEM = new orderId(852001 as int);
	static DRUNKENHAZE = new orderId(852585 as int);
	static EARTHQUAKE = new orderId(852121 as int);
	static EATTREE = new orderId(852146 as int);
	static ELEMENTALFURY = new orderId(852586 as int);
	static ENSNARE = new orderId(852106 as int);
	static ENSNAREOFF = new orderId(852108 as int);
	static ENSNAREON = new orderId(852107 as int);
	static ENTANGLE = new orderId(852147 as int);
	static ENTANGLEINSTANT = new orderId(852148 as int);
	static ENTANGLINGROOTS = new orderId(852171 as int);
	static ETHEREALFORM = new orderId(852496 as int);
	static EVILEYE = new orderId(852105 as int);
	static FAERIEFIRE = new orderId(852149 as int);
	static FAERIEFIREOFF = new orderId(852151 as int);
	static FAERIEFIREON = new orderId(852150 as int);
	static FANOFKNIVES = new orderId(852526 as int);
	static FARSIGHT = new orderId(852122 as int);
	static FINGEROFDEATH = new orderId(852230 as int);
	static FIREBOLT = new orderId(852231 as int);
	static FLAMESTRIKE = new orderId(852488 as int);
	static FLAMINGARROWS = new orderId(852174 as int);
	static FLAMINGARROWSTARG = new orderId(852173 as int);
	static FLAMINGATTACK = new orderId(852540 as int);
	static FLAMINGATTACKTARG = new orderId(852539 as int);
	static FLARE = new orderId(852060 as int);
	static FORCEBOARD = new orderId(852044 as int);
	static FORCEOFNATURE = new orderId(852176 as int);
	static FORKEDLIGHTNING = new orderId(852587 as int);
	static FREEZINGBREATH = new orderId(852195 as int);
	static FRENZY = new orderId(852561 as int);
	static FRENZYOFF = new orderId(852563 as int);
	static FRENZYON = new orderId(852562 as int);
	static FROSTARMOR = new orderId(852225 as int);
	static FROSTARMOROFF = new orderId(852459 as int);
	static FROSTARMORON = new orderId(852458 as int);
	static FROSTNOVA = new orderId(852226 as int);
	static GETITEM = new orderId(851981 as int);
	static GOLD2LUMBER = new orderId(852233 as int);
	static GRABTREE = new orderId(852511 as int);
	static HARVEST = new orderId(852018 as int);
	static HEAL = new orderId(852063 as int);
	static HEALINGSPRAY = new orderId(852664 as int);
	static HEALINGWARD = new orderId(852109 as int);
	static HEALINGWAVE = new orderId(852501 as int);
	static HEALOFF = new orderId(852065 as int);
	static HEALON = new orderId(852064 as int);
	static HEX = new orderId(852502 as int);
	static HOLDPOSITION = new orderId(851993 as int);
	static HOLYBOLT = new orderId(852092 as int);
	static HOWLOFTERROR = new orderId(852588 as int);
	static HUMANBUILD = new orderId(851995 as int);
	static IMMOLATION = new orderId(852177 as int);
	static IMPALE = new orderId(852555 as int);
	static INCINERATEARROW = new orderId(852670 as int);
	static INCINERATEARROWOFF = new orderId(852672 as int);
	static INCINERATEARROWON = new orderId(852671 as int);
	static INFERNO = new orderId(852232 as int);
	static INNERFIRE = new orderId(852066 as int);
	static INNERFIREOFF = new orderId(852068 as int);
	static INNERFIREON = new orderId(852067 as int);
	static INSTANT = new orderId(852200 as int);
	static INVISIBILITY = new orderId(852069 as int);
	static LAVAMONSTER = new orderId(852667 as int);
	static LIGHTNINGSHIELD = new orderId(852110 as int);
	static LOAD = new orderId(852046 as int);
	static LOADARCHER = new orderId(852142 as int);
	static LOADCORPSE = new orderId(852050 as int);
	static LOADCORPSEINSTANT = new orderId(852053 as int);
	static LOCUSTSWARM = new orderId(852556 as int);
	static LUMBER2GOLD = new orderId(852234 as int);
	static MAGICDEFENSE = new orderId(852478 as int);
	static MAGICLEASH = new orderId(852480 as int);
	static MAGICUNDEFENSE = new orderId(852479 as int);
	static MANABURN = new orderId(852179 as int);
	static MANAFLAREOFF = new orderId(852513 as int);
	static MANAFLAREON = new orderId(852512 as int);
	static MANASHIELDOFF = new orderId(852590 as int);
	static MANASHIELDON = new orderId(852589 as int);
	static MASSTELEPORT = new orderId(852093 as int);
	static MECHANICALCRITTER = new orderId(852564 as int);
	static METAMORPHOSIS = new orderId(852180 as int);
	static MILITIA = new orderId(852072 as int);
	static MILITIACONVERT = new orderId(852071 as int);
	static MILITIAOFF = new orderId(852073 as int);
	static MILITIAUNCONVERT = new orderId(852651 as int);
	static MINDROT = new orderId(852565 as int);
	static MIRRORIMAGE = new orderId(852123 as int);
	static MONSOON = new orderId(852591 as int);
	static MOUNT = new orderId(852469 as int);
	static MOUNTHIPPOGRYPH = new orderId(852143 as int);
	static MOVE = new orderId(851986 as int);
	static MOVEAI = new orderId(851988 as int);
	static NAGABUILD = new orderId(852467 as int);
	static NEUTRALDETECTAOE = new orderId(852023 as int);
	static NEUTRALINTERACT = new orderId(852566 as int);
	static NEUTRALSPELL = new orderId(852630 as int);
	static NIGHTELFBUILD = new orderId(851997 as int);
	static ORCBUILD = new orderId(851996 as int);
	static PARASITE = new orderId(852601 as int);
	static PARASITEOFF = new orderId(852603 as int);
	static PARASITEON = new orderId(852602 as int);
	static PATROL = new orderId(851990 as int);
	static PHASESHIFT = new orderId(852514 as int);
	static PHASESHIFTINSTANT = new orderId(852517 as int);
	static PHASESHIFTOFF = new orderId(852516 as int);
	static PHASESHIFTON = new orderId(852515 as int);
	static PHOENIXFIRE = new orderId(852481 as int);
	static PHOENIXMORPH = new orderId(852482 as int);
	static POISONARROWS = new orderId(852255 as int);
	static POISONARROWSTARG = new orderId(852254 as int);
	static POLYMORPH = new orderId(852074 as int);
	static POSSESSION = new orderId(852196 as int);
	static PRESERVATION = new orderId(852568 as int);
	static PURGE = new orderId(852111 as int);
	static RAINOFCHAOS = new orderId(852237 as int);
	static RAINOFFIRE = new orderId(852238 as int);
	static RAISEDEAD = new orderId(852197 as int);
	static RAISEDEADOFF = new orderId(852199 as int);
	static RAISEDEADON = new orderId(852198 as int);
	static RAVENFORM = new orderId(852155 as int);
	static RECHARGE = new orderId(852157 as int);
	static RECHARGEOFF = new orderId(852159 as int);
	static RECHARGEON = new orderId(852158 as int);
	static REJUVINATION = new orderId(852160 as int);
	static RENEW = new orderId(852161 as int);
	static RENEWOFF = new orderId(852163 as int);
	static RENEWON = new orderId(852162 as int);
	static REPAIR = new orderId(852024 as int);
	static REPAIROFF = new orderId(852026 as int);
	static REPAIRON = new orderId(852025 as int);
	static REPLENISH = new orderId(852542 as int);
	static REPLENISHLIFE = new orderId(852545 as int);
	static REPLENISHLIFEOFF = new orderId(852547 as int);
	static REPLENISHLIFEON = new orderId(852546 as int);
	static REPLENISHMANA = new orderId(852548 as int);
	static REPLENISHMANAOFF = new orderId(852550 as int);
	static REPLENISHMANAON = new orderId(852549 as int);
	static REPLENISHOFF = new orderId(852544 as int);
	static REPLENISHON = new orderId(852543 as int);
	static REQUEST = new orderId(852239 as int);
	static REQUESTSACRIFICE = new orderId(852201 as int);
	static RESTORATION = new orderId(852202 as int);
	static RESTORATIONOFF = new orderId(852204 as int);
	static RESTORATIONON = new orderId(852203 as int);
	static RESUMEBUILD = new orderId(851999 as int);
	static RESUMEHARVESTING = new orderId(852017 as int);
	static RESURRECTION = new orderId(852094 as int);
	static RETURNRESOURCES = new orderId(852020 as int);
	static REVENGE = new orderId(852241 as int);
	static REVIVE = new orderId(852039 as int);
	static ROAR = new orderId(852164 as int);
	static ROBOGOBLIN = new orderId(852656 as int);
	static ROOT = new orderId(852165 as int);
	static SACRIFICE = new orderId(852205 as int);
	static SANCTUARY = new orderId(852569 as int);
	static SCOUT = new orderId(852181 as int);
	static SELFDESTRUCT = new orderId(852040 as int);
	static SELFDESTRUCTOFF = new orderId(852042 as int);
	static SELFDESTRUCTON = new orderId(852041 as int);
	static SENTINEL = new orderId(852182 as int);
	static SETRALLY = new orderId(851980 as int);
	static SHADOWSIGHT = new orderId(852570 as int);
	static SHADOWSTRIKE = new orderId(852527 as int);
	static SHOCKWAVE = new orderId(852125 as int);
	static SILENCE = new orderId(852592 as int);
	static SLEEP = new orderId(852227 as int);
	static SLOW = new orderId(852075 as int);
	static SLOWOFF = new orderId(852077 as int);
	static SLOWON = new orderId(852076 as int);
	static SOULBURN = new orderId(852668 as int);
	static SOULPRESERVATION = new orderId(852242 as int);
	static SPELLSHIELD = new orderId(852571 as int);
	static SPELLSHIELDAOE = new orderId(852572 as int);
	static SPELLSTEAL = new orderId(852483 as int);
	static SPELLSTEALOFF = new orderId(852485 as int);
	static SPELLSTEALON = new orderId(852484 as int);
	static SPIES = new orderId(852235 as int);
	static SPIRITLINK = new orderId(852499 as int);
	static SPIRITOFVENGEANCE = new orderId(852528 as int);
	static SPIRITTROLL = new orderId(852573 as int);
	static SPIRITWOLF = new orderId(852126 as int);
	static STAMPEDE = new orderId(852593 as int);
	static STANDDOWN = new orderId(852113 as int);
	static STARFALL = new orderId(852183 as int);
	static STASISTRAP = new orderId(852114 as int);
	static STEAL = new orderId(852574 as int);
	static STOMP = new orderId(852127 as int);
	static STONEFORM = new orderId(852206 as int);
	static STOP = new orderId(851972 as int);
	static SUBMERGE = new orderId(852604 as int);
	static SUMMONFACTORY = new orderId(852658 as int);
	static SUMMONGRIZZLY = new orderId(852594 as int);
	static SUMMONPHOENIX = new orderId(852489 as int);
	static SUMMONQUILLBEAST = new orderId(852595 as int);
	static SUMMONWAREAGLE = new orderId(852596 as int);
	static TANKDROPPILOT = new orderId(852079 as int);
	static TANKLOADPILOT = new orderId(852080 as int);
	static TANKPILOT = new orderId(852081 as int);
	static TAUNT = new orderId(852520 as int);
	static THUNDERBOLT = new orderId(852095 as int);
	static THUNDERCLAP = new orderId(852096 as int);
	static TORNADO = new orderId(852597 as int);
	static TOWNBELLOFF = new orderId(852083 as int);
	static TOWNBELLON = new orderId(852082 as int);
	static TRANQUILITY = new orderId(852184 as int);
	static TRANSMUTE = new orderId(852665 as int);
	static UNAVATAR = new orderId(852087 as int);
	static UNAVENGERFORM = new orderId(852532 as int);
	static UNBEARFORM = new orderId(852139 as int);
	static UNBURROW = new orderId(852534 as int);
	static UNCOLDARROWS = new orderId(852245 as int);
	static UNCORPOREALFORM = new orderId(852494 as int);
	static UNDEADBUILD = new orderId(851998 as int);
	static UNDEFEND = new orderId(852056 as int);
	static UNDIVINESHIELD = new orderId(852091 as int);
	static UNETHEREALFORM = new orderId(852497 as int);
	static UNFLAMINGARROWS = new orderId(852175 as int);
	static UNFLAMINGATTACK = new orderId(852541 as int);
	static UNHOLYFRENZY = new orderId(852209 as int);
	static UNIMMOLATION = new orderId(852178 as int);
	static UNLOAD = new orderId(852047 as int);
	static UNLOADALL = new orderId(852048 as int);
	static UNLOADALLCORPSES = new orderId(852054 as int);
	static UNLOADALLINSTANT = new orderId(852049 as int);
	static UNPOISONARROWS = new orderId(852256 as int);
	static UNRAVENFORM = new orderId(852156 as int);
	static UNROBOGOBLIN = new orderId(852657 as int);
	static UNROOT = new orderId(852166 as int);
	static UNSTABLECONCOCTION = new orderId(852500 as int);
	static UNSTONEFORM = new orderId(852207 as int);
	static UNSUBMERGE = new orderId(852605 as int);
	static UNSUMMON = new orderId(852210 as int);
	static UNWINDWALK = new orderId(852130 as int);
	static VENGEANCE = new orderId(852521 as int);
	static VENGEANCEINSTANT = new orderId(852524 as int);
	static VENGEANCEOFF = new orderId(852523 as int);
	static VENGEANCEON = new orderId(852522 as int);
	static VOLCANO = new orderId(852669 as int);
	static VOODOO = new orderId(852503 as int);
	static WARD = new orderId(852504 as int);
	static WATERELEMENTAL = new orderId(852097 as int);
	static WATERYMINION = new orderId(852598 as int);
	static WEB = new orderId(852211 as int);
	static WEBOFF = new orderId(852213 as int);
	static WEBON = new orderId(852212 as int);
	static WHIRLWIND = new orderId(852128 as int);
	static WINDWALK = new orderId(852129 as int);
	static WISPHARVEST = new orderId(852214 as int);
}